﻿@using mscook.mvc;
@{
    ViewBag.Title = "览月齐鲁";
    Layout = "~/Views/Shared/_CenterLayout.cshtml";
}
@model mscook.mvc.Models.CenterCookBookModel
<div class="span9 main">
    <div class="row">
        <div class="span8 business_card highlight clearfix">
            <div class="card_header">
                <span class="card_title">
                    <i class=" icon-list-alt"></i>
                    <a target="_blank" href="#">已购杂志 <i class="chevron-right">›</i></a>
                </span>
            </div>
            <hr />
            @for (int i = 0; i < Model.CookBookList.Count; i++)
            {
                var item = Model.CookBookList.ElementAt(i);
                <div class="span2 items">
                <div class="img">
                    <a target="_blank" href="@Url.Action("ReadCookBook", "CookBook", new { id=item.Id})">
                        <img src="@Html.Encode(Url.Content("~/Upload/wide/"+item.ImageName))"></a>
                </div>
                <div class="info2">
                </div>
                <div class="mag_info1">
                    <div class="mag_in_til">
                        <h4>
                            <a href="#">@Html.Encode(item.Name)</a>
                        </h4>
                        <p>
                            <span>作者：</span>
                            <span>@Html.Encode(item.Chef==null?"":item.Chef.Name)</span>
                        </p>
                    </div>
                    <a href="@Url.Action("ReadCookBook", "CookBook", new { id=item.Id})" class="btn">在线阅读</a>
                </div>
            </div>
            }
                
            
        </div>
    </div>
</div>
